package cn.chinaflame.pagodas.req;

import java.io.Serializable;

import cn.chinaflame.pagodas.enums.CodeEnum;
import cn.chinaflame.pagodas.utils.ParamPreconditions;

/**
* @author    created by lbq
* @date	     2018年7月19日 下午4:32:06
**/
public class PaHeadReq implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String customerIP;//ip可传可不传
	private String orderId;
	private String mobile;
	
	public void check(){
		ParamPreconditions.checkNotEmpty(orderId, CodeEnum.FAIL.getCode(), "订单Id不能为空");
		ParamPreconditions.checkNotEmpty(mobile, CodeEnum.FAIL.getCode(), "会员手机号不能为空");
	}

	public String getCustomerIP() {
		return "192.168.1.1";
	}

	public void setCustomerIP(String customerIP) {
		this.customerIP = customerIP;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
}
